import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router/index'
import ElementUI from 'element-ui'

// 引入全部样式
import 'element-ui/lib/theme-chalk/index.css'

import store from './store'

Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(ElementUI)

new Vue({
  render: h => h(App),
  router,
  store,

  beforeCreate(){
    Vue.prototype.$bus = this;
  }
}).$mount('#app')
